{extend name="public/base"/} {block name="body"}
<style>
p{
  font-size:12px;
}
</style>
<header class="mui-bar mui-bar-nav" style="z-index:7">
    <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
    <h1 class="mui-title">跳转页面</h1>
</header>
<div class="mui-content ">
    <div class="mui-card" style="text-align:center;">
    <img src="__PUBLIC__/xsd/img/error.png"  style="    width: 60%;"/>
    <?php switch ($code) {?>
    <?php case 1:?>
    <h3 class="success"><?php echo(strip_tags($msg));?></h3>
    <?php break;?>
    <?php case 0:?>
    <h3 class="error"><?php echo(strip_tags($msg));?></h3>
    <?php break;?>
    <?php } ?>

    <div style="margin:20px 0 50px 0;display:block ">  页面自动 <a id="href" href="<?php echo($url);?>" style="color: #ffad6d">跳转</a> 等待时间： <b id="wait"><?php echo($wait);?></b></div>

    <div style="padding:20px; border-top:1px solid #c7c4c4;">
        <!-- <a href="/" style="color:#9e9e9e">返回首页</a> -->
    </div>
  </div>
</div>

{/block}
{block name="script"}
  <script type="text/javascript">

    $(function(){
      var wait = document.getElementById('wait'),
          href = document.getElementById('href').href;
      var interval = setInterval(function(){
          var time = --wait.innerHTML;
          if(time <= 0) {
              location.href = href;
              clearInterval(interval);
          };
      }, 1000);
    })
  </script>
  <style>
    h3{
      margin: 50px 0 50px 0;
    }
  </style>
{/block}
